package home_work2;

import java.io.File;
import java.io.IOException;
import java.util.Date;

public class test5 {
public static void main(String[] args) throws IOException {
	File f=new File("D:/a/abc.jpg");
	Date d=new Date();
	long i=d.getTime();
	System.out.println(f.createNewFile());
	System.out.println(f.renameTo(new File("D:/a/"+i+".jpg")));
	System.out.println(i+".jpg");
}
}
